﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="playListMusic.aspx.cs" Inherits="playListMusic" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>

    
  
</head>
<body onload="window.setTimeout(isPlay,1000);" >

<script type="text/javascript">
    function isPlay()
    {
        if(document.getElementById("mediaPlayer").PlayState==1){     
              document.getElementById("btnIsPlay").click();
        }
        window.setTimeout(isPlay,1000);
    }
    
    function selectPlay()
    {
        document.getElementById("btnSelectPlay").click();
    }
    	

</script>

    <form id="form1" runat="server"> 
        <table border="0" cellpadding="0" cellspacing="0" style="width: 176px">
            <tr>
                <td colspan="3">
    

        <object classid='clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6' name='mediaPlayer'  id='mediaPlayer' height='64' style="width: 359px">
        <param name='url' value=<%=fileUrl %>>
        <param name='volume' value='100'>
        <param name='enablecontextmenu' value='0'>
        <param name='enableerrordialogs' value='0'>
        <param name='AutoStart' value='true'>
        </object>
                </td>
            </tr>
            <tr>
                <td colspan="2" rowspan="2" style="width: 572px">
          
         
          
        <select runat="server" size="10" ondblclick="selectPlay()" id="Select1" style="width: 261px">
            <option  selected="selected"></option>
        </select>
                </td>
                <td style="width: 100px; text-align: center;" valign="top">
                    <asp:DropDownList ID="ddlPlayType" runat="server">
                        <asp:ListItem Value="0">顺序播放</asp:ListItem>
                        <asp:ListItem Value="1">随机播放</asp:ListItem>
                        <asp:ListItem Value="2">单曲循环</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td style="width: 100px">
                </td>
            </tr>
        </table>
        <br />
        <br />
        <br />
        <br />
        <br />
        &nbsp;
        <asp:Button ID="btnIsPlay" runat="server" OnClick="btnIsPlay_Click" Text="类型播放"  />
        <asp:Button ID="btnSelectPlay" runat="server" Text="选择播放"  OnClick="btnSelectPlay_Click" />
        
    

    </form>
</body>
</html>
